package com.jxwifi.cloud.quickclean.utils;

import android.content.Context;

import com.tencent.mm.opensdk.modelbase.BaseResp;

public class ThirdPartyLogin   {


    private OnListener mOnListeners;


    public ThirdPartyLogin(Context context) {
    }

    public void success(int type, BaseResp baseResp) {
        mOnListeners.onSuccess(type, baseResp);
    }

    public void Error(int type, int code, String message) {
        mOnListeners.onError(type, code, message);
    }

    public void Cancel(int type) {
        mOnListeners.onCancel(type);
    }

    interface OnListener {
        //登录成功
        void onSuccess(int type, BaseResp baseResp);

        //登录失败
        void onError(int type, int code, String message);

        //取消登录
        void onCancel(int type);
    }
}
